package com.glory.erp.invoice.storedetail.service.impl;

import java.io.Serializable;
import java.util.List;

import com.glory.erp.invoice.storedetail.service.StoreDetailService;
import com.glory.erp.invoice.storedetail.dao.StoreDetailDao;
import com.glory.erp.invoice.storedetail.bean.StoreDetail;
import com.glory.erp.auth.base.BaseQueryModel;

public class StoreDetailServiceImpl implements StoreDetailService{
	private StoreDetailDao storeDetailDao;
	public void setStoreDetailDao(StoreDetailDao storeDetailDao) {
		this.storeDetailDao = storeDetailDao;
	}

	public void save(StoreDetail storeDetail) {
		storeDetailDao.save(storeDetail);
	}

	public void update(StoreDetail storeDetail) {
		storeDetailDao.update(storeDetail);
	}

	public void delete(StoreDetail storeDetail) {
		storeDetailDao.delete(storeDetail);
	}

	public StoreDetail findById(Serializable uuid) {
		return storeDetailDao.findById(uuid);
	}

	public List<StoreDetail> findAll() {
		return storeDetailDao.findAll();
	}

	public List<StoreDetail> findAll(BaseQueryModel qm, Integer pageNum,Integer pageCount) {
		return storeDetailDao.findAll(qm,pageNum,pageCount);
	}

	public Integer getCount(BaseQueryModel qm) {
		return storeDetailDao.getCount(qm);
	}

}
